package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 操作日志表
 * @TableName t_operation_logging
 */
@TableName(value ="t_operation_logging")
@Data
public class OperationLogging implements Serializable {
    /**
     * 日志id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 操作类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 操作描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 板块名称
     */
    @TableField(value = "sector")
    private String sector;

    /**
     * 操作用户 id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 用户角色：student/admin/teacher
     */
    @TableField(value = "userRole")
    private String userRole;

    /**
     * 操作时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}